package com.jinbiao.annotion2;

import com.jinbiao.annotion2.FruitColor.Color;

/**
 * @author EX_WLJR_ZHUANGJB
 *
 */
public class Apple{
	
	@Override
	public String toString() {
		return "Apple [appleName=" + appleName + ", appleColor=" + appleColor + ", appleProvider=" + appleProvider
				+ "]";
	}
	@FruitName("apple")
	private String appleName;
	
	@FruitColor(fruitColor=Color.RED)
	private String appleColor;
	
	@FruitProvider(id=1,name="日本红富士",address="山东烟台市")
	private String appleProvider;
	
	public void displayName() {
		System.out.println("水果的名字是品苹果");
	}
	public String getAppleName() {
		return appleName;
	}
	public void setAppleName(String appleName) {
		this.appleName = appleName;
	}
	public String getAppleColor() {
		return appleColor;
	}
	public void setAppleColor(String appleColor) {
		this.appleColor = appleColor;
	}
	public String getAppleProvider() {
		return appleProvider;
	}
	public void setAppleProvider(String appleProvider) {
		this.appleProvider = appleProvider;
	}
	
	
}
